package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 流程任务审核记录对象 erp_act_task_comment
 *
 * @author cxl
 * @date 2024-05-30
 */
@TableName ( "erp_act_task_comment" )
@ApiModel ( value = "流程任务审核记录", description = "流程任务审核记录" )
@Data
@Accessors ( chain = true )
public class ActTaskCommentEntity {

    /**
     * 主键id
     */
    @TableId ( type = IdType.INPUT )
    private String id;

    /**
     * 流程实例id
     */
    @ApiModelProperty ( "流程实例id" )
    @TableField ( "instance_id" )
    @Excel ( name = "流程实例id" )
    private String instanceId;

    /**
     * 任务id
     */
    @ApiModelProperty ( "任务id" )
    @TableField ( "task_id" )
    @Excel ( name = "任务id" )
    private String taskId;

    /**
     * 审核人id
     */
    @ApiModelProperty ( "审核人id" )
    @TableField ( "assignee" )
    @Excel ( name = "审核人id" )
    private String assignee;

    /**
     * 审核结果(0同意 1拒绝 2回退)
     */
    @ApiModelProperty ( "审核结果(0同意 1拒绝 2回退)" )
    @TableField ( "comments" )
    @Excel ( name = "审核结果(0同意 1拒绝 2回退)" )
    private String comments;

    @ApiModelProperty ( "备注" )
    @TableField ( value = "remark" )
    private String remark;

    /**
     * 创建时间
     */
    @ApiModelProperty ( "创建时间" )
    @TableField ( "create_time" )
    @JsonFormat ( pattern = "yyyy-MM-dd" )
    @Excel ( name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd" )
    private Date createTime;

    /**
     * 逻辑删除
     */
    @ApiModelProperty ( "逻辑删除" )
    @TableField ( "is_used" )
    @Excel ( name = "逻辑删除" )
    private Integer isUsed;

    @ApiModelProperty ( "审批人姓名" )
    @TableField ( exist = false )
    private String approvedUser;

}
